package com.aaa.ssm.service.impl;

import com.aaa.ssm.mapper.GradeMapper;
import com.aaa.ssm.pojo.dto.Grade;
import com.aaa.ssm.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class GradeServiceImpl implements GradeService {
    @Autowired
    private GradeMapper gradeMapper;

    @Override
    public List<Grade> listAllGrade() {
        List<Grade> grades = gradeMapper.listAllGrade();
        return grades;
    }
}
